package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Collection;

import java.util.List;

@Mapper
public interface CollectionMapper extends BaseMapper<Collection> {

    //根据用户id,类型id和外键id添加收藏
    Integer addCollection(@Param("uid") Integer uid,@Param("type") Integer type,@Param("cid") Integer cid);


    //根据用户id,类型id展示收藏
}
